import request from '@/utils/request'
// 租房小组
export const getArea = () => {
  return request({
    method: 'get',
    url: '/home/groups?area=AREA%7C88cff55c-aaa4-e2e0'
  })
}

// 城市列表
export const getCitys = (params) => {
  return request({ url: '/area/city', params })
}

// 热门城市
export const getHot = () => {
  return request({ url: '/area/hot' })
}

// 查找
export const findCity = (id) => {
  return request({ url: '/houses/condition', params: { id } })
}

// 渲染
export const getcityList = () => {
  return request({
    url: '/houses?cityId=AREA%7C88cff55c-aaa4-e2e0&area=AREA%7C88cff55c-aaa4-e2e0&rentType=true&price=null&more=CHAR%7C76eb0532-8099-d1f4%2CFLOOR%7C1%2CAREA%7C88cff55c-aaa4-e2e0%2CORIEN%7C61e99445-e95e-7f37%2Ctrue&roomType=ROOM%7Cd1a00384-5801-d5cd&oriented=ORIEN%7C61e99445-e95e-7f37&characteristic=CHAR%7C76eb0532-8099-d1f4&floor=FLOOR%7C1&start=1&end=20'
  })
}

export const getMap = (id) => {
  return request({ url: '/area/map', params: { id } })
}
